package com.ungao.demo.mapper;

import com.ungao.framework.annotation.Mapper;
import com.ungao.framework.annotation.Select;
import com.ungao.demo.bean.UserInfo;

import java.util.List;

@Mapper
public interface UserMapper {

    @Select("select * from user")
    List<UserInfo> selectList();

    @Select("select * from user where id=#{id}")
    UserInfo selectOne(int id);

}
